@import url(./base.less);

@vw:3.75vw;

body {
    background-color: #f9fafb;
}

// 头部
header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    width: 100%;
    height: (50 / @vw);
    padding: 0 (15 / @vw);
    .left {
        width: (235 / @vw);
        height: (50 / @vw);
        img {
            width: 100%;
            height: 100%;
        }
    }
    a {
        width: (80 / @vw);
        height: (30 / @vw);
        background-color: #ffe31b;
        border-radius: (15 / @vw);
        text-align: center;
        line-height: (30 / @vw);
        font-size: (14 / @vw);
    }

}

// 搜索
.search {
    margin-top: (50 / @vw);
    height: (52 / @vw);
    padding: (10 / @vw) (15 / @vw);
    // background-color: red;
    .txt {
        height: (32 / @vw);
        background-color: #f2f4f5;
        border-radius: (16 / @vw);
        text-align: center;
        line-height: (32 / @vw);
        color: #a1a4b3;
    }
}

// banner
.banner {
    padding: 0 (15 / @vw);
    height: (108 / @vw);

    ul {
        li {
            width: (345 / @vw);
            height: (108 / @vw);
            a {
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: (5 / @vw);
                }
            }
        }
    }
}

// 排行榜
.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: (16 / @vw);

    h4 {
        font-size: (20 / @vw);
    }
    a {
        font-size: (12 / @vw);
        color: #a1a4b3;
    }
}
.list {
    padding: 0 (15 / @vw);
    margin-top: (20 / @vw);

    .content {
        ul {
            li {
                display: flex;
                background-color: #fff;
                height: (105 / @vw);
                border-radius: (10 / @vw);
                margin-bottom: (16 / @vw);
            }
            
            .pic {
                width: (105 / @vw);
                height: (105 / @vw);
                margin-right: (20 / @vw);
                img {
                    width: 100%;
                    height: 100%;
                    border-radius: (10 / @vw);
                }
            }
            .txt {
                flex: 1;
                display: flex;
                flex-direction: column;
                a {
                    color: #a1a4b3;
                    font-size: (12 / @vw);
                    line-height: 1.8;
                    &:first-child {
                        color: #333;
                        font-size: (14 / @vw);
                    }
                }
            }
        }
    }
}

// 推荐歌单
.recommend {
    padding: 0 (15 / @vw);

    .content {
        ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;

            li {
                width: (105 / @vw);
                height: (143 / @vw);
                margin-bottom: (16 / @vw);

                .pic {
                    position: relative;
                    width: (105 / @vw);
                    height: (105 / @vw);
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        border-radius: (5 / @vw);
                    }
                    .cover {
                        position: absolute;
                        left: 0;
                        bottom: 0;
                        width: (70 / @vw);
                        height: (28 / @vw);
                        background-color: rgba(0, 0, 0, .8);
                        color: #fff;
                        text-align: center;
                        line-height: (28 / @vw);
                        // border-radius: 0 (10 / @vw) 0 (10 / @vw);
                        border-radius: 0 (10 / @vw);
                    }
                }
            }
        }
    }
}

// 下载
.download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left: (15 / @vw);
    bottom: (30 / @vw);
    background-color: #fff;
    width: (345 / @vw);
    height: (45 / @vw);
    border-radius: (20 / @vw);
    padding: 0 (10 / @vw) 0 (15 / @vw);

    img {
        width: (36 / @vw);
        height: (36 / @vw);
    }
    p {
        flex: 1;
        margin-left: (20 / @vw);
    }
    i {
        width: (32 / @vw);
        height: (32 / @vw);
        text-align: center;
        line-height: (32 / @vw);
        border-radius: 50%;
        background-color: #f2f3f5;
    }
}